package com.worldcup.dao;

import com.worldcup.model.TravelMatching;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author duwan.zq
 */
@Mapper
@Repository
public interface TravelMatchingMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(TravelMatching record);

    TravelMatching selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TravelMatching record);

    /**
     * update
     * @param record
     * @return
     */
    int updateByPrimaryKey(TravelMatching record);

    /**
     * 插入
     * @param record
     * @return
     */
    int insert(TravelMatching record);

    /**
     * get
     * @param openid
     * @param refOpenid
     * @return
     */
    TravelMatching selectByOpenidAndRefOpenid(@Param("openid") String openid, @Param("refOpenid") String refOpenid);
}